package HomeWork;

import java.util.Scanner;

public class Yuan {
    private int radius=0;
    public Yuan(int radius){
     this.radius=radius;
    }

    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        System.out.println("请输入半径:");
        int radius=scanner.nextInt();
        System.out.println("周长："+2*radius*3.14);
        System.out.println("面积："+3.14*Math.pow(radius,2));
    }
}
